<?php

namespace app\api\controller\xyvenue;
use app\common\controller\Api;
use app\api\model\xyvenue\store\Store as StoreModel;

/**
 * 场馆接口
 */
class Store extends Api
{
    protected $noNeedLogin = ['lists','detail'];
    protected $noNeedRight = ['*'];
    

	/**
	 * 场馆列表
	 */
	public function lists()
    {
    	$params = $this->request->get();
        $data = StoreModel::getStoreList($params);
        $this->success('场馆列表', $data);
    }
	
	/**
     * 场馆详情
     */
    public function detail()
    {
        $id = $this->request->get('id');
        $detail = StoreModel::getDetail($id);
        if(!$detail){
            $this->error('场馆不存在！');
        }
        $this->success('场馆详情', $detail);
    }

}